package com.gzhryc.shared_device.oem.h5.agent.event;

import java.util.Map;

import com.gzhryc.weixin.api.event.IInteractiveEventService;
import com.gzhryc.weixin.api.event.msg.IEventRespMessage;
import com.gzhryc.weixin.api.event.msg.req.ImageEventMessage;
import com.gzhryc.weixin.api.event.msg.req.LinkEventMessage;
import com.gzhryc.weixin.api.event.msg.req.LocationEventMessage;
import com.gzhryc.weixin.api.event.msg.req.ShortvideoEventMessage;
import com.gzhryc.weixin.api.event.msg.req.TextEventMessage;
import com.gzhryc.weixin.api.event.msg.req.VideoEventMessage;
import com.gzhryc.weixin.api.event.msg.req.VoiceEventMessage;
import com.gzhryc.weixin.api.event.msg.resp.TextRespMessage;

public class WxInteractiveEventService implements IInteractiveEventService{

	@Override
	public IEventRespMessage text(TextEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage voice(VoiceEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage image(ImageEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage video(VideoEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage shortvideo(ShortvideoEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage location(LocationEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

	@Override
	public IEventRespMessage link(LinkEventMessage entity, Map<String,Object> data) {
		TextRespMessage txtRespMsg = TextRespMessage.create(entity);
		txtRespMsg.setContent("欢迎使用共享充电器，如有问题请拨打设备上的服务电话！");
		return txtRespMsg;
	}

}
